package com.zhz.company.contract.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * 单个code查询
 *
 * @author zhouhengzhe
 * @date 2023/3/24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class DepartmentFindByCodeRequest {

    @NotBlank(message = "部门编码不为空")
    @ApiModelProperty("部门编码")
    private String code;

    @NotBlank(message = "企业ID不为空")
    @ApiModelProperty("企业ID")
    private String companyId;

}
